package com.qf.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "testQueue2")
public class WorkListener {
    @RabbitHandler
    public void work(String str){
        System.out.println("======测试2======"+str);
    }
}
